Carbon


MPCancelTimer

Header: Multiprocessing.h Carbon status: Supported

Cancels an armed timer.

OSStatus MPCancelTimer (
    MPTimerID timerID, 
    AbsoluteTime *timeRemaining
);
timerID

The ID of the armed timer you want to cancel.

timeRemaining

On return, the timeRemaining contains the time remaining before the timer would have expired.

function result

A result code. If the timer has already expired, this function returns kMPInsufficientResourcesErr.

DISCUSSION

Also see the function MPArmTimer.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)